package com.myk.game.gobangchess;

/**
 * 动态下发的自定义按钮
 */
public class CustomBottom {
    private Room from;
    private String title;
    private PlayerEvent action;

    public CustomBottom(Room from, String title, PlayerEvent action) {
        this.from = from;
        this.title = title;
        this.action = action;
    }

    public Room getFrom() {
        return from;
    }

    public void setFrom(Room from) {
        this.from = from;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public PlayerEvent getAction() {
        return action;
    }

    public void setAction(PlayerEvent action) {
        this.action = action;
    }

    public interface PlayerEvent{
        void event(Player player);
    }
}
